<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" disabled data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-goods_id" disabled  data-source="goods/goods/index"-->
<!--                   data-field="goods_title"-->
<!--                   class="form-control selectpage" name="row[goods_id]" type="text" value="{$row.goods_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-order_id" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value="{$row.order_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否为全部医院')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio wayselect">
                {foreach name="isAllList" item="vo"}
                <label for="row[is_all]-{$key}"><input id="row[is_all]-{$key}" disabled name="row[is_all]" type="radio" value="{$key}" {in name="key" value="$row.is_all"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group selectHospitals {$row.is_all==1?'hide':''}">
        <label class="control-label col-xs-12 col-sm-2">{:__('可提供服务医院')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hospital_ids"  class="form-control selectpage"
                   data-source="hospital/hospital/index"
                   data-multiple="true"
                   data-field="hospital_name"
                   name="row[hospital_ids]" disabled type="text" value="{$row.hospital_ids}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rights_card')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rights_card" readonly class="form-control" name="row[rights_card]" type="text" value="{$row.rights_card|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rights_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rights_title" readonly class="form-control" name="row[rights_title]" type="text" value="{$row.rights_title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rights_nums')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rights_nums" disabled class="form-control" name="row[rights_nums]" type="number" value="{$row.rights_nums|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Can_uses')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-can_uses" disabled class="form-control" name="row[can_uses]" type="number" value="{$row.can_uses|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Used_nums')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-used_nums" disabled class="form-control" name="row[used_nums]" type="number" value="{$row.used_nums|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rights_endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rights_endtime" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[rights_endtime]" type="text" value="{:$row.rights_endtime?datetime($row.rights_endtime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input disabled id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否隐藏按钮（退款）')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="isShowList" item="vo"}
                <label for="row[is_show]-{$key}"><input disabled id="row[is_show]-{$key}" name="row[is_show]" type="radio" value="{$key}" {in name="key" value="$row.is_show"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rights_content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-rights_content" disabled class="form-control editor" rows="5" name="row[rights_content]" cols="50">{$row.rights_content|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
